/// currentTime : 1627897654996
/// data : [{"type":2,"url":"http://changxinshangwu.com:8089/u/0/0/202107/t/00781d32d8f146c5a16c95fae4b29a2b.jpg"}]
/// resultCode : 1

class FriendsLatelyModel {
  int currentTime;
  List<LatelyBean> data;
  int resultCode;

  FriendsLatelyModel({
      this.currentTime, 
      this.data, 
      this.resultCode});

  FriendsLatelyModel.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    if (json["data"] != null) {
      data = [];
      json["data"].forEach((v) {
        data.add(LatelyBean.fromJson(v));
      });
    }
    resultCode = json["resultCode"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.map((v) => v.toJson()).toList();
    }
    map["resultCode"] = resultCode;
    return map;
  }

}

/// type : 2
/// url : "http://changxinshangwu.com:8089/u/0/0/202107/t/00781d32d8f146c5a16c95fae4b29a2b.jpg"

class LatelyBean {
  int type;
  String url;

  LatelyBean({
      this.type, 
      this.url});

  LatelyBean.fromJson(dynamic json) {
    type = json["type"];
    url = json["url"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["type"] = type;
    map["url"] = url;
    return map;
  }

}